import React from 'react';
import { Link, Routes, Route } from 'react-router-dom';
import Home from '../pages/home.js';
import About from '../pages/about.js';

export default function App() {
  return (
    <div>
      <ul>
        <li>
          <Link to="/">home</Link>
        </li>
        <li>
          <Link to="/about">about</Link>
        </li>
      </ul>

      <Routes>
        <Route path="/" element={<Home />} />
        <Route path="/about" element={<About />} />
      </Routes>
    </div>
  );
}
